package cate.common.table.activity.wishblessing.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.wishblessing.row.WishBlessingLuckyRow;
import org.apache.commons.lang3.StringUtils;

public class WishBlessingLuckySheet extends ESheet<WishBlessingLuckyRow> {
    @Override
    public String getSheetName() {
        return "幸运事件奖励分组";
    }

    public boolean isLuckyItem(int configId, String rewardStr) {
        return getList().stream().anyMatch(e -> e.configId == configId && StringUtils.equals(e.luckyItemStr, rewardStr));
    }
}
